package com.ww.demo.servicefactory;

import org.springframework.beans.factory.annotation.Autowired;

public class test {
    @Autowired
    UserContext userContext;

    public String getTask(String type) {
        UserService userService = userContext.getUserService(type);
        return userService.task();
    }
}
